﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ViewPage1
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>ViewPage1</h2>

    <table>
        <tr>
            <th>
                Insumo
            </th>
            <th>
                Cantidad
            </th>
            <th></th>
        </tr>

    <%  foreach (var item in (List<Ezio.Models.Stocks_View>)ViewData["Stocks"]) { %>
    
        <tr>
            <td>
                <%: item.NombreInsumo %>
            </td>
            <td>
                <%: item.Cantidad %>
            </td>
            <td>
                <%: Html.ActionLink("Ver Movimientos", "VerMovimientos", new { IdBodega = item.IdBodega, NombreInsumo = item.NombreInsumo })%>  
            </td>
            
        </tr>
    
    <% } %>

    </table>

</asp:Content>
